import request from '@/utils/request'

// 获取设备分页列表
export function getdevicePageApi(params: any) {
  return request({
    url: '/ems/device/selectPage',
    method: 'get',
    params
  })
}
// 获取设备列表
export function getdeviceListApi(params: any) {
  return request({
    url: '/ems/device/list',
    method: 'get',
    params
  })
}
// 新增设备列表
export function adddeviceApi(data: any) {
  return request({
    url: '/ems/device/add',
    method: 'post',
    data
  })
}
// 更新设备列表
export function updatedeviceApi(data: any) {
  return request({
    url: '/ems/device/update',
    method: 'put',
    data
  })
}
// 删除设备列表
export function deldeviceApi(id: any) {
  return request({
    url: `/ems/device/del/${id}`,
    method: 'delete',
  })
}
